import { defineStore } from 'pinia';

export const useStore = defineStore('main', {
  state: () => ({
    token: null
  }),
  actions: {
    logout() {
      this.token = null;
      localStorage.removeItem('token');
    }
  }
});